package com.baizhi.luoht.controller;/**
 * @Author:luoht
 * @Description：
 * @Date：Create in 11:35 2018/10/24
 */

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @program: SpringMVC
 * @description:
 * @author: luoht
 * @create: 2018-10-24 11:35
 **/
@Controller
@RequestMapping("/c2c")
public class c2cController {

    @RequestMapping("/forward")
    public String method1(){
        System.out.println("==============c2c================");
        return "forward:/c2c/target.do";
    }

    @RequestMapping("/redirect")
    public String method2(){
        System.out.println("==============c2c================");
        return "redirect:/c2c/target.do";
    }

}
